<?
	include_once('inc/functions.php');
	require_once('inc/authentication.php');
	if(isset($_REQUEST['email']))
		DoLogin($_REQUEST['email'],$_REQUEST['password']);
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
	<? if(IsLoggedIn()){ ?>
		<h1>Yay You are Logged In</h1>
    <? }else{ ?>
    	<form method="post">
        	<input type="email" name="email" autofocus title="Please type you email" />
            <input type="password" name="password" title="Your Passord" />
            <input type="submit" value="Log In" />
        </form>
    <? } ?>
</body>
</html>